<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>网页聊天室</title>
    <link rel="stylesheet" href="css/main_chat.css">
    <script src="js/script.js" defer></script>
</head>
<body>
    <div class="chat-container">
        <h1>网页聊天室</h1>
        <div id="chat-box">
            <?php include 'chat.php'; ?>
        </div>
        <form id="message-form">
            <input type="text" id="nickname" value="<?php echo $_COOKIE['login_user']; ?>" readonly>
            <textarea id="message" placeholder="输入消息..."></textarea>
            <button type="submit">发送</button>
        </form>
    </div>
</body>
</html>

